import request from '@/utils/request'

/**
 * 查询组织机构
 * @returns {AxiosPromise}
 */
export function queryOri() {
  return request({
    url: 'rest/api/s/service/list/dict/ori',
    method: 'get'
  })
}

/**
 * 查询全部服务
 * @param params
 * @returns {AxiosPromise}
 */
export function queryAllServiceByOri(params) {
  return request({
    url: 'rest/api/service/list/pc/default/auth/all',
    method: 'get',
    params
  })
}

export function queryAllService(params) {
  return request({
    url: 'rest/api/service/list/app/auth/all',
    method: 'get',
    params
  })
}

export function queryAllScService(params) {
  return request({
    url: 'rest/api/service/list/app/auth/all/sc',
    method: 'get',
    params
  })
}

export default { queryOri, queryAllServiceByOri, queryAllService, queryAllScService }
